﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;

namespace eCashDatalayer
{
    public class DispatchCabinetAuthorityModel: INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler PropertyChanged;

        private int _CabinetauthorityID;
        private string _Referencenumber;
        private DateTime _Dateentered;
        private string _Collectedby;
        private DateTime _Datecollected;
        private string _Enteredby;
        private string _NamesofOfficials;
        private string _Destination; 
     
        /// When the Property is changed from the PL this gets Fired
        /// </summary>
        /// <param name="property"></param>
        private void OnPropertyChanged(String property)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(property));
            }
        }

        public int CabinetauthorityID
        {
            get
            {
                return _CabinetauthorityID;
            }
            set
            {
                _CabinetauthorityID = value;

                OnPropertyChanged("CabinetauthorityID");
            }
        }

        public string Referencenumber
        {
            get
            {
                return _Referencenumber;
            }
            set
            {
                _Referencenumber = value;

                OnPropertyChanged("Referencenumber");
            }
        }

        public DateTime Dateentered
        {
            get
            {
                return _Dateentered;
            }
            set
            {
                _Dateentered = value;

                OnPropertyChanged("Dateentered");
            }
        }

        public String Collectedby
        {
            get
            {
                return _Collectedby;
            }
            set
            {
                _Collectedby = value;

                OnPropertyChanged("Collectedby");
            }
        }

        public DateTime Datecollected
        {
            get
            {
                return _Datecollected;
            }
            set
            {
                _Datecollected = value;

                OnPropertyChanged("Datecollected");
            }
        }

        public string Enteredby
        {
            get
            {
                return _Enteredby;
            }
            set
            {
                _Enteredby = value;

                OnPropertyChanged("Enteredby");
            }
        }

        public string NamesofOfficials
        {
            get
            {
                return _NamesofOfficials;
            }
            set
            {
                _NamesofOfficials = value;

                OnPropertyChanged("NamesofOfficials");
            }
        }

        public string Destination
        {
            get
            {
                return _Destination;
            }
            set
            {
                _Destination = value;

                OnPropertyChanged("NamesofOfficials");
            }
        }
    }
}